package com.example.leetcode.bit;

import com.example.leetcode.bit.common.BitUtils;

class Solution231 {
    public boolean isPowerOfTwo(int n) {
        return BitUtils.isPowerOfTwo(n);
    }
}

public class leetcode231 {
    public static void main(String[] args) {
        Solution231 solution231 = new Solution231();
        System.out.println(solution231.isPowerOfTwo(1));
        System.out.println(solution231.isPowerOfTwo(16));
        System.out.println(solution231.isPowerOfTwo(4));
        System.out.println(solution231.isPowerOfTwo(5));
        System.out.println(solution231.isPowerOfTwo(1073741825));
        System.out.println(solution231.isPowerOfTwo(-16)); // false
    }
}
